<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var a=Number(prompt("请输入三位数"))
    var b=a%10;
    var c=parseInt(a/10%10)
    var d=parseInt(a/100)
    var aa=''+b+c+d
    if(a==aa){
        alert(a+"是回文数")
    }else{
        alert(a+"不是回文数")
    }
</script>